<script type="text/javascript">
alert("This is alert Message");
document.write("This is message on browser by document.write");
confirm("I am asking question to confirm ?");
console.log("This is log message ..to view press F12 ,check output in Firebug > console ");
</script>